package api

import (
	"github.com/gin-gonic/gin"
	"go-caipu/pkg/api/dtos"
	"go-caipu/pkg/api/helper"
	"go-caipu/pkg/constant"
)

func (hs *HTTPServer) QueryData(c *gin.Context) {
	reqDTO := dtos.QueryRequest{}

	if err := helper.BindAndValidate(c, &reqDTO); err != nil {
		helper.ErrorWithDetail(c, constant.CodeErrInternalServer, constant.ErrTypeInternalServer, err)
		return
	}
}
